<html>

<head>
<title>Globals: Surface Editor</title>
<style type="text/css"><!--tt { font-size: 10pt } pre { font-size: 10pt }--></style>
</head>

<body bgcolor="#ffffff" text="#000000" link="#000080" vlink="#800000" alink="#0000ff">

<table border="0" cellpadding="0" cellspacing="0" bgcolor="#d0d0d0">
  <tr>
    <td width="120" align="left"><a href="modstate.html"><img width="96" height="20"
    border="0" src="../images/navlt.gif" alt="State Query"></a></td>
    <td width="96" align="left"><a href="surface.html"><img width="64" height="20" border="0"
    src="../images/navrt.gif" alt="Surface Functions"></a></td>
    <td width="96" align="left"><a href="../globals.html"><img width="56" height="20"
    border="0" src="../images/navup.gif" alt="Globals"></a></td>
    <td width="288" align="right"><a href="../index.html"><img width="230" height="20"
    border="0" src="../images/proglw.gif" alt="Table of Contents"></a></td>
  </tr>
</table>

<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="600"><br>
    <h3>Surface Editor</h3>
    <p><small><strong>Availability</strong>&nbsp; LightWave 6.0</small><br>
    <small><strong>Component</strong>&nbsp; Layout, Modeler</small><br>
    <small><strong>Header</strong>&nbsp; <a href="../../include/lwsurf.h">lwsurfed.h</a></small></p>
    <p>The surface editor global allows you to control the surface editing interface.</p>
    <p><strong>Global Call</strong></p>
    <pre>   LWSurfEdFuncs *surfedf;
   surfedf = global( LWSURFEDFUNCS_GLOBAL, GFUSE_TRANSIENT );</pre>
    <p>The global function returns a pointer to an LWSurfEdFuncs.</p>
    <pre>   typedef struct st_LWSurfEdFuncs {
      void (*<strong>open</strong>)       (int);
      void (*<strong>close</strong>)      (void);
      int  (*<strong>isOpen</strong>)     (void);
      void (*<strong>setSurface</strong>) (LWSurfaceID);
      void (*<strong>setPosition</strong>)(int x, int y);
      void (*<strong>getPosition</strong>)(int *x, int *y, int *w, int *h);
   } LWSurfEdFuncs;</pre>
    <dl>
      <dt><tt><strong>open</strong>( int )</tt></dt>
      <dd>Open the surface editor window.</dd>
      <dt><tt><br>
        <strong>close</strong>()</tt></dt>
      <dd>Close the window.</dd>
      <dt><tt><br>
        state = <strong>isOpen</strong>()</tt></dt>
      <dd>True if the editor window is open.</dd>
      <dt><tt><br>
        <strong>setSurface</strong>( surfid )</tt></dt>
      <dd>Set the current surface in the editor.</dd>
      <dt><tt><br>
        <strong>setPosition</strong>( x, y )</tt></dt>
      <dd>Set the window's position relative to the upper left corner of the screen.</dd>
      <dt><tt><br>
        <strong>getPosition</strong>( x, y, w, h )</tt></dt>
      <dd>Get the window's position and size in pixels.</dd>
    </dl>
    </td>
  </tr>
</table>
</body>
</html>
